<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="${pageContext.request.contextPath }/resources/css/style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%
request.setCharacterEncoding( "UTF-8" );
response.setCharacterEncoding( "UTF-8" );
response.setContentType( "text/html; charset=UTF-8" );
%>

	<title>꽁알 Administrator</title>
</head>
<body>
<form action="regAdvMemo.ga" method="post">
	<input type="hidden" name="id" value="${memoClass.id }"/>
	<input type="hidden" name="memotype" value="${memoClass.memotype }"/>
	<table align="center" width="300">
		<tr><td align="center"><textarea rows="3" cols="34" name="memo" style="resize:none;"></textarea></td></tr>
		<tr><td align="center"><input type="submit" value="메모 입력"/></td></tr>
	</table>
</form>
	
	<br/><br/>
	
	<table align="center" width="270">
	<c:if test="${listSize > 0 }">
		<c:forEach var="resultList" items="${memoList }">
			<tr><td>${resultList.regdate }</td></tr>
			<tr><td>${resultList.memo }</td></tr>
			<tr height="25"><td></td></tr>
		</c:forEach>
	</c:if>
	<c:if test="${listSize <= 0 }">
		<tr><td align="center">기존에 작성된 메모가 없습니다.</td></tr>
	</c:if>
	</table>

</body>
</html>